import {createRouter, createWebHashHistory} from 'vue-router'
const Home = () => import("../components/Home.vue");
const Login = () => import("../components/Login.vue");
const Inoculate = () => import("../components/view/Inoculate.vue");
const Vaccine = () => import("../components/view/Vaccine.vue");
    const routes= [
        {
            path: '/',
            name:'首页',
            component: Home,
            children:[
                {
                    path: '/Home/Inoculate',
                    name:'接种',
                    component: Inoculate
                },
                {
                    path: '/Home/Vaccine',
                    name:'疫苗',
                    component: Vaccine
                }
            ]
        },
        {
            path: '/Login',
            name:'登录',
            component: Login
        }

    ]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
